<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view>
			<text class="title">{{title}}</text>
		</view>
	</view>
</template>

<script>
	import {setAuthorization,removeAuthorization, getAuthorization} from '@/utils/auth';

	export default {
		data() {
			return {
				title: '跳转中...'
			}
		},
		onLoad(option) {
			console.log('-----indexoption,',option);
			let accessToken = option.access_token || getAuthorization();
			let jumpToPage = option.page || '/pages/main';
			if(accessToken){
				setAuthorization(accessToken);
			}

			console.log('###jumptopage,',jumpToPage);
			uni.redirectTo({
				url:jumpToPage
			})
			
			
		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
